package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcComment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_comment", catalog = "mr_plants")
public class UgcComment implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private String content;
	private Integer toContentType;
	private Integer toContentId;
	private Integer toContentUserId;
	private Integer replyCommentId;
	private Integer replyCommentUserId;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcComment() {
	}

	/** full constructor */
	public UgcComment(Integer userId, String content, Integer toContentType,
			Integer toContentId, Integer toContentUserId,
			Integer replyCommentId, Integer replyCommentUserId,
			Timestamp createTime, String ip) {
		this.userId = userId;
		this.content = content;
		this.toContentType = toContentType;
		this.toContentId = toContentId;
		this.toContentUserId = toContentUserId;
		this.replyCommentId = replyCommentId;
		this.replyCommentUserId = replyCommentUserId;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "content", length = 320)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "to_content_type")
	public Integer getToContentType() {
		return this.toContentType;
	}

	public void setToContentType(Integer toContentType) {
		this.toContentType = toContentType;
	}

	@Column(name = "to_content_id")
	public Integer getToContentId() {
		return this.toContentId;
	}

	public void setToContentId(Integer toContentId) {
		this.toContentId = toContentId;
	}

	@Column(name = "to_content_user_id")
	public Integer getToContentUserId() {
		return this.toContentUserId;
	}

	public void setToContentUserId(Integer toContentUserId) {
		this.toContentUserId = toContentUserId;
	}

	@Column(name = "reply_comment_id")
	public Integer getReplyCommentId() {
		return this.replyCommentId;
	}

	public void setReplyCommentId(Integer replyCommentId) {
		this.replyCommentId = replyCommentId;
	}

	@Column(name = "reply_comment_user_id")
	public Integer getReplyCommentUserId() {
		return this.replyCommentUserId;
	}

	public void setReplyCommentUserId(Integer replyCommentUserId) {
		this.replyCommentUserId = replyCommentUserId;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}